<?php
ob_start();
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <style>
        * {
            word-wrap: break-word;
        }
        body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td {
            margin: 0;
            padding: 0;
        }
        body, button, input, select, textarea {
            color: #333;
            font: 12px tahoma,arial,宋体;
        }
        ul, ol, li {
            list-style: none outside none;
        }
        a{text-decoration: none;}
        a:hover{text-decoration:underline}
        .fr{float:right}
        .fl{float:left}
        .p10{padding:10px}
        .p20{padding:20px}
        .m5{margin:5px}
        .m10{margin:10px}
        .dt{font-weight: bold}
        .colorRed {
            color: #cc3366;
        }
        .area {
            clear: both;
            margin: 0 auto;
            overflow: hidden;
            background:#fff;
            text-align: center;
        }
<?php
preg_match("/^(.*\}\s*?)(\<.*)$/Uisx",$_POST[nr],$postnr);
$nr=$postnr[1];
$nr=preg_replace("/url\((http\:\/\/[a-z0-9_]*\.mop\.com)/Uisx","url(http://collect.longsunhd.com/source/plugin/yzs1013_pldr/getimg.php?url=\\1",$nr);
echo $nr;
?>

    </style>
    <title></title>
</head>
<body>
<?php
echo str_replace('\"','"',$postnr[2]);
?>

</body>
<?php
$nr=ob_get_contents();
$fn=fopen("createcss_iframe.htm","w");fwrite($fn,$nr);fclose($fn);
ob_end_flush();
?>